import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import index from '@/components/index'
import fan from '@/components/fan'
import controlLog from '@/components/controlLog'
import collections from '@/components/collections'
import user from '@/components/user'
import nopath from '@/components/404'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },  
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/fan',
      name: 'fan',
      component: fan
    },
    {
      path: '/controlLog',
      name: 'controlLog',
      component: controlLog
    },
    {
      path: '/collections',
      name: 'collections',
      component: collections
    },
    {
      path: '/user',
      name: 'user',
      component: user
    },
    {
      path: '*',
      name: 'nopath',
      component: nopath
    }
  ]
})
